<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery.js"></script>
<script src="js/pintuer.js"></script>
<script src="js/imgCompress.js"></script>
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>新增客房信息</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="AddRoom" enctype="multipart/form-data">  
       <div class="form-group">
        <div class="label">
          <label>客房编号：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="room.rno"  data-validate="required:此项目必填！,length#==4:客房编号必须为4位！" /> 
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>客房类型：</label>
          </div>
        <select id="s1_text1_bold" name="room.pattern">
                                    <option value="标准" selected="selected">标准</option>
                                    <option value="舒适">舒适</option>
                                    <option value="豪华">尊享</option>                                    
       </select>
      </div>
      <div class="form-group">
        <div class="label">
          <label>参考图片：</label>
        </div>
        <div class="field">
          <input type="file" id="file" name="file"/>
        </div>
      </div>    
        <div class="form-group">
        <div class="label">
          <label>订购价格：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="room.price" data-validate="required:此项目必填！,length#<=5:价格需小于等于5位数！" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>客房描述：</label>
        </div> 
        <div class="field">
          <textarea class="input" name="room.introduction" data-validate="required:必须输入客房基本信息，如热水、早餐提供、起床服务等。" style="height:90px;"></textarea>
          <div class="tips"></div>
        </div>
      </div>
       <div class="form-group">
       <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit">提交</button>
          <button class="button bg-main icon-pencil-square-o" type="reset">重置</button>     
        </div>
      </div>  
 </form>
 </div>
 </div>
</body>
</html>
